package parser;

import antlr.RecognitionException;

class AppendStmt extends Stmt {
    
    Expr list;
    Expr val;
    
    AppendStmt(Expr list, Expr val) {
        this.list = list; 
        this.val = val;
    }
     
    void write(ByteStream out) throws RecognitionException {
        list.write(out);
        val.write(out);
        out.write(Opcodes.LIST_APPEND);
    }

}

